<script src="../js/axios.js"></script>
<meta charset="UTF-8">
<script>
  let _this = this
  this.axios = axios

  function fn() {
    console.log(_this)
    setTimeout(() => {
      console.log(this)
    }, 1000)
  }

  // fn()

  let page = {
    pagenum: 1,
    pagesize: 10,
    getPagenum:function() {
      _this.onresize = function() {
        console.log('11111')
      }
      console.log(this)
      return this.pagenum
    },
    setPageNum(pageNum){
      this.pagenum = pageNum
    }
  }
  //console.log(page.getPagenum())

  //函数的尾调用
  function sum(){
    let num = 10
    if (num === 10) {
      return alert('程序终止了')
    }
    console.log("程序继续运行")
  }
  sum()

</script>
